package ${modelMetadata.packagePrefix}.${modelMetadata.subsystem}.web.struts2.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import ${modelMetadata.packagePrefix}.${modelMetadata.subsystem}.web.struts2.form.${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer};

/**
 * <p>
 * Title:${modelMetadata.modelDescription}
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2012
 * </p>
 * <p>
 * Company: liss
 * </p>
 * @author <a href="mailto:shushanlee@msn.com">liss</a>
 * @version 1.0
 * @see 
 * @since   1.0
 */
public class ${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionSuffer} extends DispatchAction {

	/**
	 * <p>
	 * Title��Method ${modelMetadata.javaModelNameLowerCamelCase}sGrid ��ѯ
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward ${modelMetadata.javaModelNameLowerCamelCase}sGrid(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}Form = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return mapping.findForward("${modelMetadata.javaModelNameLowerCamelCase}sGrid");
	}

	/**
	 * <p>
	 * Title��Method create${modelMetadata.javaModelNameUpperCamelCase} ����ҳ��
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward ${modelMetadata.createPrefix}${modelMetadata.javaModelNameUpperCamelCase}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return mapping.findForward("${modelMetadata.createPrefix}${modelMetadata.javaModelNameUpperCamelCase}");
	}
	
	/**
	 * <p>
	 * Title��Method change${modelMetadata.javaModelNameUpperCamelCase} �޸�ҳ��
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward ${modelMetadata.editPrefix}${modelMetadata.javaModelNameUpperCamelCase}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return mapping.findForward("${modelMetadata.editPrefix}${modelMetadata.javaModelNameUpperCamelCase}");
	}
	
	/**
	 * <p>
	 * Title��Method ${modelMetadata.javaModelNameUpperCamelCase}Detail �鿴ҳ��
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward ${modelMetadata.javaModelNameLowerCamelCase}Detail(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return mapping.findForward("${modelMetadata.javaModelNameLowerCamelCase}Detail");
	}
	
	/**
	 * <p>
	 * Title��Method saveNew${modelMetadata.javaModelNameUpperCamelCase} ��������
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward saveNew${modelMetadata.javaModelNameUpperCamelCase}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return ${modelMetadata.javaModelNameLowerCamelCase}sGrid(mapping, form, request, response);
	}
	
	/**
	 * <p>
	 * Title��Method saveChanged${modelMetadata.javaModelNameUpperCamelCase} �����޸�
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward saveChanged${modelMetadata.javaModelNameUpperCamelCase}(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return ${modelMetadata.javaModelNameLowerCamelCase}sGrid(mapping, form, request, response);
	}
	
	/**
	 * <p>
	 * Title��Method saveChanged${modelMetadata.javaModelNameUpperCamelCase} ɾ��
	 * </p>
	 * <p>
	 * Description��
	 * </p>
	 * @author <a href="mailto:shushanlee@msn.com">liss</a>
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return ActionForward
	 */
	public ActionForward delete${modelMetadata.javaModelNameUpperCamelCase}s(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
		${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer} ${modelMetadata.javaModelNameLowerCamelCase}${modelMetadata.actionFormSuffer} = (${modelMetadata.javaModelNameUpperCamelCase}${modelMetadata.actionFormSuffer}) form;
		
		
		return ${modelMetadata.javaModelNameLowerCamelCase}sGrid(mapping, form, request, response);
	}
	
}